Automattic\WooCommerce\Blocks\Domain\Services\CheckoutFields D

Total Complexity 149
Dependencies 6
Dependents 15
Total lines 1,370
Lines of code 735
Logical lines of code 315
Comment lines 473
Methods 41
Properties 6

Methods 41

Method Rating Maintainability Complexity Lines of code
validate_options()
B
39 17 64
process_select_field()
A
45 10 42
get_all_fields_from_object()
A
50 9 27
__construct()
A
32 1 143
get_order_additional_fields_with_values()
A
50 8 27
register_field_attributes()
A
47 7 36
validate_field_for_location()
S
48 6 36
register_checkout_field()
S
48 5 35
get_field_from_object()
S
55 6 18
validate_fields_for_location()
S
51 4 27
validate_field()
S
53 4 24
add_session_meta_keys()
S
53 4 23
format_additional_field_value()
S
62 5 10
get_group_key()
S
61 4 13
get_group_name()
S
60 4 13
persist_field_for_order()
S
62 4 11
sanitize_field()
S
55 3 20
get_fields_for_location()
S
57 3 17
sync_order_additional_fields_with_customer()
S
63 4 10
sync_customer_additional_fields_with_order()
S
63 4 10
filter_fields_for_location()
S
61 3 13
get_fields_for_group()
S
62 3 12
default_validate_callback()
S
63 3 11
update_default_locale_with_fields()
S
67 3 8
get_field_location()
S
67 3 8
process_checkbox_field()
S
64 3 9
set_array_meta()
S
65 3 8
deregister_checkout_field()
S
66 2 8
persist_field_for_customer()
S
68 2 7
get_address_fields_keys()
S
80 1 3
is_customer_field()
S
77 1 3
is_field()
S
79 1 3
get_core_fields()
S
82 1 3
get_additional_fields()
S
82 1 3
get_order_fields_keys()
S
80 1 3
init()
S
72 1 5
filter_fields_for_order_confirmation()
S
68 1 8
get_contact_fields_keys()
S
80 1 3
default_sanitize_callback()
S
82 1 3
add_fields_data()
S
75 1 4
get_additional_fields_keys()
S
75 1 4